home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / ISp Sample / Source / MemoryHandler.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.9 KB  |  87 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        MemoryHandler.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            xxx put technology here xxx
  17.  
  18.     Writers:
  19.  
  20.         (BWS)    Brent Schorsch
  21.  
  22.     Change History (most recent first):
  23.  
  24.        <SP1>      7/1/99    BWS        first checked in
  25. */
  26.  
  27. #ifndef __MEMHANDLER__
  28. #define __MEMHANDLER__
  29.  
  30. //•    ————————————————————————————————————————    Includes
  31.  
  32. #ifndef __CONTROLS__
  33. #include <Controls.h>
  34. #endif
  35.  
  36. #ifndef __LISTS__
  37. #include <Lists.h>
  38. #endif
  39.  
  40. #ifndef __PALETTES__
  41. #include <Palettes.h>
  42. #endif
  43.  
  44. #ifndef __QDOFFSCREEN__
  45. #include <QDOffscreen.h>
  46. #endif
  47.  
  48. //•    ————————————————————————————————————————    Public Definitions
  49. //•    ————————————————————————————————————————    Public Types
  50. //•    ————————————————————————————————————————    Public Variables
  51. //•    ————————————————————————————————————————    Public Functions
  52.  
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56.  
  57. extern Boolean IsResourceHandle(Handle theHandle);
  58. extern Boolean IsLockedHandle(Handle theHandle);
  59.  
  60. extern void DisposeControlZ(ControlHandle *theControl);
  61. extern void DisposeWindowZ(WindowPtr *theWindow);
  62. extern void DisposeDialogZ(DialogPtr *theDialog);
  63. extern void DisposeGWorldZ(GWorldPtr *theGWorld);
  64. extern void DisposePaletteZ(PaletteHandle *thePal);
  65.  
  66. extern void KillPictureZ(PicHandle *thePicture);
  67.  
  68. extern void DisposePtrZ(Ptr *thePtr);
  69. extern void DisposeHandleZ(Handle *theHandle);
  70.  
  71. extern void TEDisposeZ(TEHandle *theHandle);
  72. extern void LDisposeZ(ListHandle *theHandle);
  73.  
  74. extern void PurgeAndCompactMem(void);
  75.  
  76. extern Ptr NewTaggedPtr(Size size, OSType tag, UInt32 refCon);
  77. extern Ptr NewTaggedPtrClear(Size size, OSType tag, UInt32 refCon);
  78. extern void DisposeTaggedPtr(Ptr thePtr);
  79. extern void DisposeTaggedPtrZ(Ptr *thePtr);
  80.  
  81. extern UInt32 GetAllocatedRam(void);
  82.  
  83. #ifdef __cplusplus
  84. }
  85. #endif
  86.  
  87. #endif